let body = document.querySelector("body")!;
let body1 = document.querySelector("body") as HTMLElement;
// 获取标签
let div = document.querySelector(".hd")!;
// 因为div可能为空，所以会有告警推断

console.log(div.innerHTML);